using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter39
{
	/// <summary>
	/// Example01: 1 What Is The Period of the Pendulum?
	/// The period of a pendulum is measured to be 3.00 s in 
	/// the reference frame of the pendulum. What is the period 
	/// when measured by an observer moving at a speed of 0.950c 
	/// relative to the pendulum? 
	/// </summary>
	public class Example01
	{
		public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Time t = new L.Time();
			t.s = 3.0;
			L.Velocity v = new L.Velocity();
			v.X = 0.95*L.Constant.SpeedOfLightInVacuum;
			L.Time tp = L.Relativity.TimeDilation(t,v);
			result+=Convert.ToString(tp.s)+"\r\n";
		}	
	}
}
